﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFTest
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                using (DataGofinerEntities context = new DataGofinerEntities())
                {
                    context.Database.Log += s => Console.WriteLine($"当前执行sql:{s}");
                    crm_customer customer = context.crm_customer.Find(1);
                    

                } 
            }
            catch(Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            Console.ReadLine();

        }
    }
}
